package com.tengol.demo.design.pattern.structural.decorator.v2;

/**
 * BattercakeDecoratorWithSausage
 *
 * @author dongrui
 * @date 2019/03/06
 */
public class BattercakeDecoratorWithSausage extends BattercakeDecorator{
    public BattercakeDecoratorWithSausage(IBattercake iBattercake) {
        super(iBattercake);
    }

    @Override
    public String getDesc() {
        return super.getDesc() + "加一个香肠";
    }

    @Override
    public int cost() {
        return super.cost() + 2;
    }
}
